package com.focusai.efairy.network.request.base;


import com.focusai.efairy.network.ProgressRequestBody;
import com.focusai.efairy.network.Response;

import java.util.List;
import java.util.Map;

/**
 * Created by heqingbao on 2016/8/4.
 */
public abstract class MultipartRequest<T> extends Request<T> {

    private static final String APPLICATION_OCTET_STREAM = "application/octet-stream";

    private ProgressRequestBody.ProgressListener mProgressListener;

    public MultipartRequest(int method, String url, Response.Listener<T> listener) {
        super(method, url, listener);
    }

    public String getMediaType() {
        return APPLICATION_OCTET_STREAM;
    }

    public ProgressRequestBody.ProgressListener getProgressListener() {
        return mProgressListener;
    }

    public void setProgressListener(ProgressRequestBody.ProgressListener progressListener) {
        mProgressListener = progressListener;
    }

    public abstract Map<String, List<String>> getFilePaths();
}
